
import axios from '@/utils/request';

// 登录/
export interface loginlogindata {
  username: string;
  password: string;
  captcha: string;
}
export function loginlogin(params: loginlogindata) {
  return axios.post("/api/login/login", params);
}
// 学科/
export interface registergetGradeSubjectData {
  gid: string; //年级id

}
export function registergetGradeSubject(params: registergetGradeSubjectData) {
  return axios.post("/api/register/getGradeSubject", params);
}
// 退出登陆

export function loginOutlogOut() {
  return axios.post("/api/loginOut/logOut");
}

//修改密码获取用户名
export interface getUserName {
  username: string; //用户id
}
export function changePassword(params: getUserName) {
  return axios.post("/api/login/changePassword",params);
}